home *** CD-ROM | disk | FTP | other *** search
/ Assassins - Ultimate CD Games Collection 3 / Assassins 3 - The Ultimate Games CD (1997)(Weird Science)[!][Amiga-CD32-CDTV].iso / game_extras / speculator / docs / serial.doc < prev    next >
Text File  |  1996-08-13  |  7KB  |  143 lines

  1. SERIAL CONNECTIONS
  2.   
  3. How to connect almost everything -›by Mark J Swift and Simon N Goodwin.
  4.  
  5. A tricky business?
  6.  
  7. If you have ever tried to connect two pieces of hardware via a serial
  8. interface, you will know that things can get pretty tricky. The problem
  9. is compounded by the fact that no matter how many leads you have made
  10. up in the past, making a new one is like starting from scratch.
  11.  
  12. With a little advance planning however, making up a lead can be as simple
  13. as putting together a two-piece jigsaw...
  14.  
  15. Thes files explain in words and pictures how you can make cheap and
  16. reliable connections between many Sinclair computers, near relatives like
  17. the Thor XVI and SAM, and other common machines like Amiga, Atari ST,
  18. Amstrad PCW (with CPS add-on) and PC-compatibles.
  19.  
  20. The accompanying .IFF files show the connections for common serial ports
  21. on Spectrum and other machines. The files for Spectrum 128 (also QL SER1)
  22. and Interface 1 should be self-evident. The others contain the pin-outs
  23. for D-type serial ports, as used on Amiga, Atari ST, most Amstrads and
  24. IBM-compatibles. The 25 pin variant is used on older PCs, Amiga, ST, PCW,
  25. TRS-80 etc. The DB9 variant is used on SAM's optional Communications
  26. interface, recent PC clones and many laptop and portable computers,
  27.  
  28.  
  29. The JIGSAW solution
  30.  
  31. Each of the accompanying diagrams is drawn as a single piece of a two-piece
  32. jigsaw. To discover the cable connections required to connect two machines,
  33. simply take the relevant pieces - and snap them together!
  34.  
  35.  
  36. Other variations
  37.  
  38. Not all the machines have their own picture - for instance, ST, Amiga and
  39. Amstrad PCWs all use the same 'standard' 25 pin connection. This was the
  40. old RS-232 'standard', used on old PCs, TRS-80s and many terminals. This
  41. fell out of favour because of the bulky connector with a large number of
  42. unused pins, sometimes assigned to conflicting 'extra' signals, and rather
  43. confusing names for the signals.
  44.  
  45. Some 'AT' PCs and add-on serial boards for various micros replace the
  46. 25 way connector with a nine pin connector wired as for the SAM, but with
  47. the addition of DSR on pin 6 and a small voltage, usually between 5 and 9
  48. volts, on pin 7. This is nominally RTS, but finds its most common use
  49. providing power for a serial mouse! You can connect a PC mouse to SAM's
  50. Communications interface if you supply +5V on this pin, but you need to
  51. poll the serial port about every 7 mS or characters get lost, and this
  52. makes it inpractical for use with many SAM programs.
  53.  
  54.  
  55. Making your own pieces
  56.  
  57. If you have a machine that is not featured here then you will need to make
  58. up a jigsaw piece of your own. You should be looking for which lines
  59. are DATA and which lines are HANDSHAKE. You should also take note
  60. of the GROUND line and whether the signal lines are INPUT or OUTPUT.
  61.  
  62. It is wise to leave power connections, usually marked +5V or similar,
  63. well alone, as these are not needed for serial communications between
  64. computers and are most likely to cause damage if wrongly connected.
  65.  
  66. If your machine does not match any listed here - and many with 9 pin
  67. or 25 pin D connectors correspond to the SAM and DTE diagrams - you need
  68. to copy the diagram from one of these machines and replace the signal
  69. lines with corresponding ones for the new machine. In the manufacturers
  70. notes, the machine will be described as either DTE or DCE, and this will
  71. determine whether a line is input or output.
  72.  
  73.  
  74. DTE devices
  75.  
  76. 'Data Terminal Equipment' is generally intillegent equipment such as
  77. Computers, Terminals and Printers. There should be at least FIVE signal
  78. lines as follows:
  79.  
  80.      TxD (output) / CTS (input)  / GND / RxD (input)  / DTR (output)
  81.  
  82. Note that both SAM and Spectrum Interface 1 are DTE devices, but SAM
  83. requires a female connector and the Interface 1 expects a male plug.
  84.  
  85.  
  86. DCE devices
  87.  
  88. 'Data Communication Equipment' is generally dumb equipment such as modems,
  89. but the second QL serial port SER2 falls into this category. The signal
  90. names are taken from the intelligent end, so you will find for example
  91. that the Transmit Data (TxD) line is actually an input! This was one of
  92. the most confusing aspects of the original RS-232 serial standard. Again
  93. there will be at least FIVE signal lines as following:
  94.  
  95.      TxD (input)  / CTS (output) / GND / RxD (output) / DTR (input)
  96.  
  97. In a rare moment of standardisation, Sinclair used the same connector and
  98. pinout for the Spectrum 128K and QL SER1. We have successfully used cables
  99. and serial-to-parallel converters made for the QL with original 128K and
  100. Plus Three Spectrums. Note that the QL's SER2 port is differently wired -
  101. it uses the DCE standard rather than DTE.
  102.  
  103.  
  104. Further information
  105.  
  106. This article is based on graphics and text released as part of the Amiga
  107. Qdos Emulator, so you can find machine readable files of the diagrams - in
  108. monochrome packed IFF format - on the Amiga Qdos 3.20 SOURCE disk, in the
  109. sub-directory SerialConnections. 
  110.  
  111. The authors would bve interested to hear of details for third-party
  112. Spectrum serial interfaces such as the Swift Disc, Rotronics Wafadrive,
  113. and any others that may be in your collection. Please send details so
  114. that we can prepare graphics for these as well.
  115.  
  116.  
  117. Other aspects
  118.  
  119. This text has concentrated on hardware connections and skipped over
  120. software. See the documentation for ZXMIT for a tried and tested way
  121. to link a Spectrum and Amiga, and use this data when you wish to transfer
  122. Spectrum files from more esoteric sources - almost every machine has a
  123. Spectrum emulator, these days! In general you should make sure that both
  124. ends of the link are using the same speed and data size. Most machines
  125. default to 9600 baud and 8 data bits, with one or two stop bits. Extra
  126. stop bits do no harm.
  127.  
  128. You may need to reduce the rate (at both ends) for flakey interfaces -
  129. particularly if you are not using hardware handshaking or transmitting
  130. to a Sinclair machine. Many links can work at 1200 baud or lower speeds
  131. with no need for handshaking.
  132.  
  133. While we cannot sort out your serial communications problems on an
  134. individual basis, these articles should at least ensure that you get
  135. the connections right. If you run into configuration problems you
  136. should consider writing a letter to William - it's quite likely that
  137. one of the other users has encountered your problem and found a way
  138. round it. If you do write in, be sure to include full details of the
  139. software configuration commands and menu selections that you've tried
  140. at each end of the link. Good luck, and happy handshaking!
  141.  
  142. M.J.SWIFT April 1993, revised and extended by Simon N Goodwin 1994-1995.
  143.